<H1>User Account.</H1>
          <p> This's your information</p>
<?php 
	//tao form
	echo $this->Form->create('Trainee');
	echo $javascript->link(array('views/trainees/editsubject.js'));
	echo $this->Form->input('id');
	//echo $javascript->link(array('views/trainees/register'));
?>
   	  <div class="leftbox">	  
    	<h1>sign in information</h1>
		<?php echo $this->Form->hidden('testSiteID',array('value'=>$testSiteID, 'id'=>'testSiteID'));?>
		<?php echo $this->Form->hidden('venueID',array('value'=>$venue, 'id'=>'venueID'));?>
   	  </div><!--endleftbox-->
     		
      	<div class="rightbox">
          <h1>Schedule information </h1>
			<div id="errormsg">
				<? if(isset($update_error_msg))echo "<span style='font-size:11px; font-family: Tahoma; color:#FF0000'>" . $update_error_msg . "</span>"; ?>					
			</div>
  		  <?php
			$option1 = array();
			$option2 = array();
			$option3 = array();
			
			for($i = 1; $i < 32; $i++)
				$option1[$i] = $i;
				
			for ($j = 1; $j < 13; $j++)
				$option2[$j] = $j;
				
			for ($k = 2012; $k < 2100; $k++)
				$option3[$k] = $k;
			?>
			  
           <div class="col16">
                  <div class="name">Day: *</div>
				  <? echo $this->Form->input('dayTest', array('type'=>'select', 'options' => $option1,'class'=>'lst_choice16', 'label' => false, 'empty' => 'Click one...', 'id'=>'ddldate', 'selected'=>$edittedDate)); ?>           
                           
          </div>
              <div class="col162">
                  <div class="name">Month: *</div>
				  <? echo $this->Form->input('monthTest', array('type'=>'select', 'options' => $option2,'class'=>'lst_choice16', 'label' => false, 'empty' => 'Click one...', 'id'=>'ddlmonth', 'selected'=>$edittedMonth)); ?>           
                        
              </div>
              <div class="col162">
                  <div class="name">Year: *</div>
				  <? echo $this->Form->input('yearTest', array('type'=>'select', 'options' => $option3,'class'=>'lst_choice16', 'label' => false, 'empty' => 'Click one...', 'id'=>'ddlyear', 'selected'=>$edittedYear)); ?>         
                       
              </div>
			 <?
				$arrTimeSlots = array();
				foreach ($timeslots as $value) {
					$id = $value['t']['id'];
					$arrTimeSlots["$id"] =  $value['t']['description'];					
				}
			 ?>
<div id="clearone"></div>
              <div class="name">Duration of test: *</div>
			  	<div>
				<? if(isset($update_error_msg_timeslot))echo "<span style='font-size:11px; font-family: Tahoma; color:#FF0000'>" . $update_error_msg_timeslot . "</span>"; ?>					
				</div>
			   <? echo $this->Form->input('timeslot', array('type'=>'select', 'id'=>'ddltimeslot', 'class'=>'lst_choice', 'label' => false, 'empty' => 'Click one...', 'options' => $arrTimeSlots)); ?>         
              
      	</div><!--endrightbox-->
        
        
   	  <div id="clearone"></div>
    	<div class="nav_btn">
		  <a href="#" class="rightbtn"><? echo $this->Form->end(__('Submit', true));?></a>
            <div id="clearone"></div>
      </div>
    </form>